/**
 * Fancy look and feel library.
 * 
 * Want to look better? Put on some lipstick. Comes in a variety of colours and flavours.
 * 
 * @author dbiollo
 */


/*
 * Styles for a fancy bubble tooltip. Arrow is on the bottom
 */

.tooltip_bkgnd {
    display: none;
    z-index: 9998;
    position: absolute; /* need to compute left and bottom from javascript */
    background-color: #F5F5F5;
    /* easy rounded corners for modern browsers */
    -webkit-box-shadow: 0px 0px 4px #5A5A5A;
    -moz-box-shadow: 0px 0px 4px #5A5A5A;    
    box-shadow: 0px 0px 4px #5A5A5A;    
    border: 1px solid #A9A9A9;
}

.tooltip_bkgnd, .tooltip_bkgnd .tooltip_content {
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;        
}

.tooltip_bkgnd .tooltip_content {
    overflow: hidden;
    padding: 10px;
    border: 1px solid white;
}

.tooltip_bkgnd .tooltip_arrow {    
    background: transparent url(/images/constellation/tooltip/tooltip_sprite.png) no-repeat;
    background-position: 0px 0px;
    position: absolute;
    top: -11px;
    left: 20px;
    width: 21px;
    height: 12px;
}

.tooltip_bkgnd .tooltip_arrow.bottom {    
    background-position: 0px -15px;
    top: auto;    
    bottom: -11px;
}

.tooltip_bkgnd .tooltip_arrow.right {
    width: 12px;
    height: 21px;
    background-position: -37px 0px;
    top: auto;
    left: auto;
    bottom: 20px;
    right: -11px;
}

.tooltip_bkgnd .tooltip_arrow.left {
    background-position: -22px 0;
    height: 21px;
    left: -11px;
    right: auto;
    top: 30px;
    bottom: auto;
    width: 12px;
}

/*
 * Styles for timeline, 2x2, SWOT tooltip. Arrow is on top
 */
.lipstick-tooltip {
    position: absolute;
    width: 375px;
    height: 183px;
    z-index: 60;
    display: none;
    overflow: hidden;
}

.lipstick-tooltip .top-left {
    position: absolute;
    background: url(/images/constellation/tooltip/tt_sprite.png);
    background-position: 0px 0px;
    width: 3px;
    height: 13px;
}

.lipstick-tooltip .bottom-left {
    position: absolute;
    background: url(/images/constellation/tooltip/tt_sprite.png);
    background-position: -6px -200px;
    top: 180px;
    width: 3px;
    height: 3px;
}

.lipstick-tooltip .top-right {
    position: absolute;
    background: url(/images/constellation/tooltip/tt_sprite.png);
    background-position: -31px 0px;
    left: 372px;
    width: 3px;
    height: 13px;
}

.lipstick-tooltip .bottom-right {
    position: absolute;
    background: url(/images/constellation/tooltip/tt_sprite.png);
    background-position: -10px -200px;
    left: 372px;
    top: 180px;
    width: 3px;
    height: 3px;
}

.lipstick-tooltip .mid-left {
    position: absolute;
    background: url(/images/constellation/tooltip/tt_sprite.png);
    background-position: 0px -200px;
    top: 13px;
    width: 2px;
    height: 167px;
}

.lipstick-tooltip .mid-right {
    position: absolute;
    background: url(/images/constellation/tooltip/tt_sprite.png);
    background-position: -3px -200px;
    left: 373px;
    top: 13px;
    width: 2px;
    height: 167px;
}

.lipstick-tooltip .top {
    position: absolute;
    left: 3px;
    width: 369px;
    height: 13px;
    background: url(/images/constellation/tooltip/tt_sprite.png);
    background-position: 0px -14px;
}

.lipstick-tooltip .bottom {
    position: absolute;
    left: 3px;
    top: 180px;
    width: 369px;
    height: 3px;
    background: url(/images/constellation/tooltip/tt_sprite.png);
    background-position: 0px -196px;
}

.lipstick-tooltip .top-notch {
    position: absolute;
    left: 49px;
    width: 26px;
    height: 13px;
    background: url(/images/constellation/tooltip/tt_sprite.png);
    background-position: -4px 0px;
}

.lipstick-tooltip .mid {
    position: absolute;
    left: 2px;
    top: 13px;
    width: 369px;
    height: 167px;
    background: #DFDFDF url(/images/constellation/tooltip/tt_sprite.png) repeat-x;
    background-position: 0px -28px;
    padding-left: 1px;
    padding-right: 1px;
}

/*
 * Styles for alert, confirm and popup dialogs
 */

.lipstick_message_dialog {
    max-width: 400px;    
    overflow-x: hidden;
    word-wrap: break-word;
}
.lipstick_dialog_msg {
    color: #464646;
}

/* this needs to be an id for ajax updates */
.lipstick_dialog_content, .dialog_body_content {
    padding: 18px;
    z-index: 2;
    border-bottom: 1px solid #E2E2E2;
    font-size: 13px;
    background-color: #FEFEFE;
}

.dialog_container.non_modal_mode .lipstick_dialog_content {
    background-color: white;
    border-left: none;
    border-right: none;
    border-radius: 5px;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
}

.dialog_container.non_modal_mode.scrollable > .lipstick_dialog_content {
    max-height: 405px;
    overflow-x: hidden;
    overflow-y: auto;
}


/* CSS for lipstick.showMethodDialog */
.dialog_container {
    position: relative; /* puts it over the drawer */
    z-index: 2;
}

.dialog_container.non_modal_mode {
    border-color: #444;
}

.dialog_container.non_modal_mode .cancel-button {
    background: transparent url(/images/constellation/activity_action_bar_sprites.png) scroll no-repeat -348px 0;
    width: 25px;
    height: 26px;
    position: absolute;
    right: -17px;
    top: -17px;
    z-index: 1000;
    padding: 0;
}

.dialog_header {
    position: relative; /* required for z-index to take effect */
    z-index: 10; /* set header on top of dialog content so box-shadow appears correctly */
    background-color: #E2E2E2;
    border-bottom: 1px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
        -moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
        -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    border-radius: 5px 5px 0 0;
        -moz-border-radius: 5px 5px 0 0;
        -webkit-border-radius: 5px 5px 0 0;
    -moz-transition: border-radius 0.1s linear;
    -webkit-transition: border-radius 0.1s linear;
    -ms-transition: border-radius 0.1s linear;
    transition: border-radius 0.1s linear;
}
/* Remove adjacent border-radius when drawer is open */
.dialog_container.open .dialog_header {    
    -moz-transition: border-radius 0.1s linear;
    -webkit-transition: border-radius 0.1s linear;
    -ms-transition: border-radius 0.1s linear;
    transition: border-radius 0.1s linear;
    border-radius: 5px 0 0 0;
        -moz-border-radius: 5px 0 0 0;
        -webkit-border-radius: 5px 0 0 0;
}
.dialog_container.open .dialog_footer {
    -moz-transition: border-radius 0.1s linear;
    -webkit-transition: border-radius 0.1s linear;
    -ms-transition: border-radius 0.1s linear;
    transition: border-radius 0.1s linear;
    border-radius: 0 0 0 5px;
        -moz-border-radius: 0 0 0 5px;
        -webkit-border-radius: 0 0 0 5px;
}

@media \0screen {
    .dialog_header {
        border-bottom: 1px solid #888; /* IE8 hack for dark border, since IE < 9 doesn't support box-shadow */
    }
}

.dialog_footer {
  	z-index: 1;
    height: 24px;
    border-top: 1px solid #FFF;
    padding: 10px 18px;
    background-color: #FAFAFA;
    border-radius: 0 0 5px 5px;
        -moz-border-radius: 0 0 5px 5px;
        -webkit-border-radius: 0 0 5px 5px;
}

.dialog_header_content, .dialog_footer_content {
  	height: 100%;
}

.dialog_header_content {
  	padding: 18px 18px 14px 18px;
  	color: #444;
  	font-weight: bold;
    font-size: 18px;
    text-shadow: 0 1px white;
	text-overflow: ellipsis;
  	white-space: nowrap;
}

.dialog_header_content_extra {
    float: right;
    font-weight: normal !important;
}

.dialog_header_content_extra .pseudo_link {
    color: white !important;
    font-weight: bold;
}

.dialog_footer_content .button, .dialog_footer_content .cancel-button {
    float: right;    
}

.dialog_footer_content .button {
    margin-left: 10px;
}

.dialog_footer_content .cancel-button {
    padding: 4px 0 4px 15px;
}

.lipstick_drawer {
    position: absolute;
    top: -10px;
    bottom: -10px;
    right: 0;
    width: 260px;
    background-color: #efefef;
    -moz-transition: all 0.2s linear;
    -webkit-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    transition: all 0.2s linear;
    z-index: 1; /* under the .dialog_container */
    border: 10px solid #222;
    border-radius: 0 15px 15px 0;
        -webkit-border-radius: 0 15px 15px 0;
        -moz-border-radius: 0 15px 15px 0;
    box-shadow: none;
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
}

.lipstick_drawer.open {
    right: -268px;
    box-shadow: 0 1px 10px rgba(0,0,0,0.5);          
        -webkit-box-shadow: 0 1px 10px rgba(0,0,0,0.5);
        -moz-box-shadow: 0 1px 10px rgba(0,0,0,0.5);
    border-left:  none;
}
.lipstick_drawer_link:hover {
    text-decoration: underline;
}

/* End of CSS for lipstick.showMethodDialog */

/* Popup menu styles */
.popup_menu_text {
    font-size: 11px;
    color: #333;
    font-weight: normal;
    line-height: 16px;
    text-align: left;
    margin-right: 5px;
}

.lipstick_wait_overlay, .lipstick_wait_bkgnd, .lipstick_wait_progress {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 200;
}

.lipstick_wait_bkgnd {
    background-color: black;
    opacity: 0.1;
    filter: alpha(opacity=10);
    align: center;
}

.lipstick_wait_progress {   
    background: transparent url("/images/loading.gif") no-repeat center center;
}


/* Styles for Growl messages */
.growl_user a {
    color: white;
    font-weight: bold;
}

.growl_link a {
    color: #C4E5FE;
    font-weight: bold;
}

/* Loading spinner */
.spinner {
    vertical-align: middle;
    margin-right: 8px;
}

/* Styles for Checkbox */

.lipstickCheckbox {
    float: left;
    margin-left: -3px;
    cursor: pointer;
}
.lipstickCheckbox input[type=checkbox] {
    vertical-align: middle;
    margin-right: 5px;
    cursor: pointer;
}
.lipstickCheckbox label {
    vertical-align: middle;
    cursor: pointer;
}

.swListDD.menuOpen {
    visibility: visible;
}

/* Simple Tabs */
/* Make sure .itemToggleBtnContainer .simpleTab looks fine when making changes to this style */

.simpleTabs {
    border-bottom: 1px solid #d3d3d3;
    white-space: nowrap;
    font-size: 0px; /* remove gap between children inline-blocks */
}

.simpleTab {
    cursor: pointer;
    display: inline-block;
    position: relative;
    top: 1px;               /* to cover border from .simpleTabs */
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    padding: 3px 13px;
    border: 1px solid #d3d3d3;
    border-left: none;
    background: -moz-linear-gradient(top, white, #ececec);
    background: -webkit-gradient(linear, left top, left bottom, from(white), to(#ececec));
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='white', endColorstr='#ececec');
}

.simpleTab:first-child {
    border-left: 1px solid #d3d3d3;
}

.simpleTab.selected {
    cursor: default;
    border-bottom-color: white;
    background: white;
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

.simpleTab > a {
    color: #5E5E5E;
}

.simpleTab2 {
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    padding: 6px 35px 6px 15px;
}

.simpleTab2.selected {
    cursor: default;
    font-size: 18px;
}

.simpleTab2.noSelection {
    cursor: default;
    font-size: 13px;
    padding: 6px 0px;
}

.solid_tooltip_container {
    position: absolute;
    overflow: visible;
    width: 2px;
    white-space: nowrap;
    z-index: 150;
    display: none;
}

.solid_tooltip_inner_container {
    float: left;
    position: relative;
    left: 50%;
    overflow: visible;
}

.solid_tooltip {
    float: left;
    position: relative;
    left: -50%;
    color: white;
    background-color: black;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    padding: 2px 8px;
    height: 18px;
    line-height: 18px;
    min-width: 60px;
    text-align: center;
    opacity: 0.85;
}

.solid_tooltip_triangle {
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -8px;
    width: 0;
    height: 0;
    border-left: solid transparent;
    border-right: solid transparent;
    border-top: solid black;
    border-bottom: 0;
    border-width: 8px;
}

.hover_card_loading_spinner {
    position: absolute;
    right: 7px;
}

/* Nav Panel Badges */
.nav_panel_badge {
    float: right;
    display: inline-block; 
    padding: 0 5px;
    margin-bottom: 5px;
    margin-top: 8px;
    line-height: 15px;
    background: #6bafe0;
    border-radius: 5px;
        -moz-border-radius: 5px;
        -webkit-border-radius: 5px;
    box-shadow: 0 1px 0 0 #777;
        -moz-box-shadow: 0 1px 0 0 #777;
        -webkit-box-shadow: 0 1px 0 0 #777;
    text-align: center;
    text-shadow: 0 1px #777;
    font-size: 11px;
    font-weight: bold;
    color: #FFF;
}
.selected .nav_panel_badge {
    background: #FFF;
    color: #688ec1;
    box-shadow: 0 1px 0 0 #143866;
        -moz-box-shadow: 0 1px 0 0 #143866;
        -webkit-box-shadow: 0 1px 0 0 #143866;
    text-shadow: none;
}

/* Modal */
.simplemodal-overlay, .c22-overlay, .dataset_dialog_overlay {
    background-color: black;
    opacity: 0.6;
    filter:alpha(opacity=60);
    background-image: -ms-radial-gradient(50% 50%, #555, black);
    background-image: -moz-radial-gradient(50% 50%, #555, black);
    background-image: -webkit-radial-gradient(50% 50%, #555, black);
}
.simplemodal-container, .c22_dialog_container, .dataset_dialog {
  min-width: 340px;
  background-color: #FAFAFA;
  border: 10px solid #222;
  border-radius: 15px;                              /* IE < 9 will have square corners */
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.5);           /* IE < 9 will not have drop shadows */
    -webkit-box-shadow: 0 1px 10px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 1px 10px rgba(0,0,0,0.5);
}